package com.wangyadong.hobby.front.model.beandependies;

import com.wangyadong.hobby.front.model.WemailRecord;
import com.wangyadong.hobby.front.model.WuserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DefaultRepositoryConfig {
    public WuserInfo wuserInfo;

    public DefaultRepositoryConfig() {
    }

    @Autowired
    public DefaultRepositoryConfig(WuserInfo wuserInfo) {
        this.wuserInfo = wuserInfo;
  }

    @Bean
    public WemailRecord accountRepository(WuserInfo wuserInfo) {
        return new WemailRecord(wuserInfo);
    }
}